package com.example.airport.utils;

import java.util.Random;

public class RandomAdapter {

  public static String getMqttId(String preStr)
    {
        Random random = new Random();
        int randomNumber = random.nextInt(99999 - 10000 + 1) + 10000;
        String result = String.valueOf(randomNumber).substring(0, 5);
        return preStr + result;
    }
}
